<?php 
include('../V_Abrir_Sesion.php');
?>
<!DOCTYPE html>
<html lang="en" class="no-js">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
    <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
    <title>Administradores</title>
    <meta name="description" content="Sidebar Transitions: Transition effects for off-canvas views" />
    <meta name="keywords" content="transition, off-canvas, navigation, effect, 3d, css3, smooth" />
    <meta name="author" content="Codrops" />
    <link rel="shortcut icon" href="../favicon.ico">
    <link rel="stylesheet" type="text/css" href="../css/normalize.css" />
    <link rel="stylesheet" type="text/css" href="../css/demo.css" />
    <link rel="stylesheet" type="text/css" href="../css/icons.css" />
    <link rel="stylesheet" type="text/css" href="../css/component.css" />
    <script src="../js/modernizr.custom.js"></script>

    <link href="../css/bootstrap.min.css" rel="stylesheet" media="screen">
      <script type="text/javascript" src="../js/bootstrap-tab.js"></script>
      <script type="text/javascript" src="http://twitter.github.com/bootstrap/assets/js/bootstrap-tab.js"></script>

    <script src="http://code.jquery.com/jquery.js"></script>
        <script src="../js/bootstrap.min.js"></script>
        <script src="../js/prototype.js "type="text/javascript"></script> 
    <script src="../js/modernizr.custom.js"></script>
    <style type="text/css">
    #st-trigger-effects{

      width:250px;
      margin-top:-45px;
    }
      #contenedor{
      width:900px; 
      height:500px;
       background-color:white; 
       /*margin-left:400px;*/ 
       margin-top:125px; 
       box-shadow: 8px 5px 20px #000;
      -moz-box-shadow: -8px 20px -5px #000;
      -webkit-box-shadow: -8px 20px -5px #000;
      border-radius: 20px;
    }
    </style>
  </head>
<body>
  <body>
    <div id="st-container" class="st-container">
      
      <nav class="st-menu st-effect-11" id="menu-11">
        <h2 class="icon icon-lab">SIPREST</h2>
        <ul>
          <li><a class="icon icon-data" href="../Formulario">Formulario</a></li>
          <li><a class="icon icon-location" href="../Especialidades">Especialidad</a></li>
          <li><a class="icon icon-study" href="../Usuarios">Usuarios</a></li>
          <li><a class="icon icon-photo" href="index.php">Administradores</a></li>
          <li><a class="icon icon-wallet" href="#">Credits</a></li>
        </ul>
      </nav>

<?php
    require('../Login/ModelConexion.php');

    $Id_Admin=$_GET['Id_Admin'];
    $conexion = new Conexion();
    $consulta = $conexion->Consulta("
    SELECT * FROM tb_admin 
    WHERE IDAD= '$Id_Admin'
        ");
    if($Arreglo= $conexion->f_array($consulta))
    {
    $V_CedulaAdmin=$Arreglo['IDAD'];
    $V_NombreAdmin=$Arreglo['NOAD'];
    $V_1ApellidoAdmin=$Arreglo['A1AD'];
    $V_2ApellidoAdmin=$Arreglo['A2AD'];
    $V_TelefonoAdmin=$Arreglo['TEAD'];
    
?>

      <!-- content push wrapper -->
      <div class="st-pusher">
        <div class="st-content"><!-- this is the wrapper for the content -->
          <div class="st-content-inner"><!-- extra div for emulating position:fixed of the menu -->
            <!-- Top Navigation -->
           <div class="codrops-top clearfix" >
              <span class="right"><a style="color:#388A5A;" class="glyphicon glyphicon-off" href="../V_Cerrar_Sesion.php" ><h6>Cerrar Sesión</h6></a></span>
              <br><br>
            </div>
            <center>
            <div id="st-trigger-effects">
              <button data-effect="st-effect-11">Ver Menú Principal</button>
              </div>
            </center> 
        <center>
        <div id="contenedor">
          <div class="container-fluid">
          <center>
          <br>
            <h3><p class="text-success">Modificar Administradores</p></h3>
          <div class="input-group">
            <form action="ControlAdmin.php" method="POST" class="form-horizontal">
            <center>
            <fieldset>
            <div class="form-group">
            <label class="col-lg-4 control-label" for="cedula"><h4>C&eacute;dula:</h4></label>
            <div class="col-lg-2"> 
            <input type='text' name='V_CedulaAdmin'  class="form-control" id="cedula" placeholder="C&eacute;dula" style="width: 200px; padding: 2px" value='<?php echo $V_CedulaAdmin ?>' ReadOnly/>
                      <!-- <span id="comprobarcedula"></span> -->
            </div>  
            </div>

            <div class="form-group">
            <label class="col-lg-4 control-label" for="contra"><h4>Nombre:</h4></label>
            <div class="col-lg-2">
            <input type='text' name='V_NombreAdmin' class="form-control"  id="contra" placeholder="Nombre" style="width: 200px; padding: 2px" value='<?php echo $V_NombreAdmin ?>' required/>  
            </div>
            </div>

            <div class="form-group">
            <label class="col-lg-4 control-label" for="1Apellido"><h4>Primer Apellido:</h4></label>
            <div class="col-lg-2">
            <input type='text' name='V_1ApellidoAdmin' class="form-control" id="1Apellido" placeholder="Primer Apellido" style="width: 200px; padding: 2px" value='<?php echo $V_1ApellidoAdmin ?>' required/> 
            </div>
            </div>

            <div class="form-group">
            <label class="col-lg-4 control-label" for="1Apellido"><h4>Segundo Apellido:</h4></label>
            <div class="col-lg-2">
            <input type='text' name='V_2ApellidoAdmin' class="form-control" id="2Apellido" placeholder="Segundo Apellido" style="width: 200px; padding: 2px" value='<?php echo $V_2ApellidoAdmin ?>' required/> 
            </div>
            </div>

            <div class="form-group">
            <label class="col-lg-4 control-label" for="contra"><h4>Teléfono:</h4></label>
            <div class="col-lg-2">
            <input type='text' name='V_TelefonoAdmin' class="form-control"  id="contra" placeholder="Teléfono" style="width: 200px; padding: 2px" value='<?php echo $V_TelefonoAdmin ?>' required/>  
            </div>
            </div>

            </fieldset>
            </center>
            <div class="form-group">
            <div class="col-lg-9">
            <input type='submit' style="background-color:#388A5A;" value='Agregar' class="btn btn-success" /><input  type='hidden' value='1' name='Admin_Modificar' />
            </div>
            </div>
            
            </form>
          </div>
          </center>
          </div>
        </div>
        </center>
        </div>

          </div><!-- /st-content-inner -->
        </div><!-- /st-content -->
      </div><!-- /st-pusher -->
      <?php 
  
      }
      else
      {
      echo "Debe Ingresar al Listado de Administradores";
      }
      ?> 

    </div><!-- /st-container -->
    <script src="../js/classie.js"></script>
    <script src="../js/sidebarEffects.js"></script>
  </body>      
  </html>